<template>
  <section class="router-view container box box-column box-center text-center">
    <h1>优学活动页集合</h1>
    <p class="cl-second mt-10 mb-10">
      请严格遵守开发规范（点击开发规范滚动到底部查看README.md）
    </p>

    <div class="box">
      <van-button
        class="mr-10"
        size="small"
        @click="navigateTo('http://git.yatiku.com/baisfc/single-mobile#readme')"
        >开发规范</van-button
      >
      <van-button
        type="primary"
        size="small"
        @click="navigateTo('https://youzan.github.io/vant/#/zh-CN/intro')"
        >开发文档</van-button
      >
    </div>
  </section>
</template>

<script>
import { Button } from "vant";

export default {
  name: "index",

  created() {
  },

  methods: {
    /**
     * 新页面打开指定url
     */
    navigateTo(url) {
      return window.open(url);
    },
  },

  components: {
    [Button.name]: Button,
  },
};
</script>

<style lang="scss" scoped></style>
